SftTree/OCX 7.0

SftTreeColumns.Count Property

Softel vdm, Inc.

Defines the number of columns.

Syntax       

Get

VB.NET

Cols = object.Count  As Short

VB

Cols = object.Count  As Integer

C#.NET

short Cols = object.Count;

VC++

short Cols = object->Count;
short Cols = object->GetCount();

C

HRESULT object->get_Count(short* Cols);

Delphi

Cols := object.Count   : Smallint;

Put

VB.NET

object.Count = Cols  As Short

VB

object.Count = Cols  As Integer

C#.NET

short object.Count = Cols;

VC++

short object->Count = Cols;
void object->PutCount(short Cols);

C

HRESULT object->put_Count(short Cols);

Delphi

object.Count := Cols   : Smallint;

object

A SftTreeColumns object.

Cols

Defines the number of columns.  The valid range is 1 through 255.

Comments

The Count property defines the number of columns.

The number of columns can only be changed if a tree control is empty.  The Items.Clear method can be used to remove all items from a tree control.

Additional columns are always added at the end of the list of columns.  Existing column properties are not changed.  Default values are used for the new columns added.  These can be changed using the column related properties.  The last column will be defined using an explicit column width.  If an open-ended column is desired, use the ColumnsObj.OpenEnded property to redefine the last column.

See Also  SftTreeColumns Object | Object Hierarchy


Feedback / comments / error reports for this topic
© 2015 - Softel vdm, Inc. - www.softelvdm.com